
const publicKey = '';
const privateKey = '';
const encryptedInput = '';
const decryptedInput = '';

function createPrivateKey() {

... // To assign privateKey
  
}


function createPublicKey() {

... // To assign publicKey
  
}


function encryptInput(input) {

// To assign encrypted input
  
...

createPublicKey(); // To hold for comparison
createPrivateKey(); // To send for decryption
  
console.log('Made Key...', privateKey); // From private key function

console.log('Encrypted...', encryptedInput); // From this function

console.log('Made key...', publicKey); // From public key function
}




function decryptInput(key) {

// To assign decrypted input
...

console.log('Using key...', key); // To compare key to publicKey

console.log('Using key...', publicKey); // To compare to key

console.log('Decrypted...', decryptedInput); // From this function
  
}


const stringInput = "Hello, World!";

console.log('Receiving...');

encryptInput(stringInput);

console.log('Decrypting...');


decryptInput(privateKey);

console.log('Finishing...');














